package com.example.demojenkins.demo1;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api")
public class Demo3 {


    @RequestMapping("/skip/404.html")
    public String skip1() {
        return "404";
    }

    @RequestMapping("/skip/403.html")
    public String skip2() {
        return "403";
    }

    //登录
    @RequestMapping(value = "/hello")
    public String save3(Model model) {
        return "login";
    }

    @RequestMapping("/login")
    public String login(String username, String password) {
        System.out.println(username + ":===========》" + password );
        return "403";
    }
    //注册跳板
    @RequestMapping("/registerJump")
    public String registerJump() {
        return "register";
    }

    //注册
    @RequestMapping("/register")
    public String register(String username, String password, String mobile) {
        System.out.println(username + ":===========》" + password + ":===========》" + mobile);
        return "403";
    }

}
